﻿#include "FITKAbaSectionShellHomogeneous.h"


namespace Interface
{
    FITKAbaAbastractSection::FITKAbaSectionType FITKAbaSectionShellHomogeneous::getSectionType()
    {
        return FITKAbaAbastractSection::FITKAbaSectionType::ShellHomogeneous;
    }


    bool FITKAbaSectionShellHomogeneous::copy(FITKAbstractDataObject* obj)
    {
        bool ok = FITKAbaAbastractSection::copy(obj);
        if (!ok)
            return false;
        FITKAbaSectionShellHomogeneous* objShellSection = dynamic_cast<FITKAbaSectionShellHomogeneous*>(obj);
        if (objShellSection == nullptr)
            return false;
        this->setThickness(objShellSection->getThickness());
        this->setThicknessIntergrationPoints(objShellSection->getThicknessIntergrationPoints());
        return true;
    }

    double FITKAbaSectionShellHomogeneous::getThickness() const
    {
        return m_shellThickness;
    }

    void FITKAbaSectionShellHomogeneous::setThickness(double value)
    {
        m_shellThickness = value;
    }

    int FITKAbaSectionShellHomogeneous::getThicknessIntergrationPoints() const
    {
        return m_thickIntergrationPoints;
    }

    void FITKAbaSectionShellHomogeneous::setThicknessIntergrationPoints(int num)
    {
        m_thickIntergrationPoints = num;
    }

    QString FITKAbaSectionShellHomogeneous::getTypeString()
    {
        return "Shell, Homogeneous";
    }

}

